import 'package:json_annotation/json_annotation.dart';

part 'data.g.dart';

@JsonSerializable()
class AttentionData {
  AttentionData({
    this.id,
    this.mainId,
    this.mainUserInfoId,
    this.type,
    this.name,
    this.photo,
    this.note,
    this.remarks,
    this.createBy,
    this.updateBy,
    this.createDate,
    this.updateDate,
    this.delFlag,
    this.searchKey,
    this.city,
    this.cityLabel,
    this.province,
    this.provinceLabel,
    this.fansNum,
    this.follow,
  });

  int id;
  int mainId;
  int mainUserInfoId;
  String type;
  String name;
  String photo;
  String note;
  dynamic remarks;
  int createBy;
  dynamic updateBy;
  DateTime createDate;
  dynamic updateDate;
  String delFlag;
  dynamic searchKey;
  String city;
  String cityLabel;
  String province;
  String provinceLabel;
  int fansNum;
  bool follow;

  factory AttentionData.fromJson(Map<String, dynamic> json) =>
      _$AttentionDataFromJson(json);
  Map<String, dynamic> toJson() => _$AttentionDataToJson(this);
}
